/* 放大登录框 */
.new_login_box {
  will-change: transform;
}

/* 放大并居中显示 */
.new_login_box.fangda-enhanced {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) scale(2.2);
  transform-origin: center center;
  z-index: 2147483647; /* 保证在最上层，避免遮挡 */
  max-width: unset !important; /* 防止被父容器限制宽度 */
  height: auto !important; /* 取消固定高度限制 */
  max-height: 92vh; /* 增加垂直空间，避免超出视口 */
  overflow: auto; /* 若内容过长，支持内部滚动 */
}

/* 放大后适度提升内容可读性 */
.new_login_box.fangda-enhanced .nlb_input input,
.new_login_box.fangda-enhanced .nlb_btn input {
  font-size: 20px !important;
  padding: 12px 14px !important;
}

/* 标题与方式标签保持较大字号 */
.new_login_box.fangda-enhanced .nlb_title span,
.new_login_box.fangda-enhanced .nlb_login span {
  font-size: 20px !important;
}

/* 协议区域字体调小 */
.new_login_box.fangda-enhanced .nlb_useragreenment {
  font-size: 12px !important;
  line-height: 1.4 !important;
}
.new_login_box.fangda-enhanced .nlb_useragreenment .link {
  font-size: 12px !important;
}

/* 快速填充面板样式 */
.fangda-helper {
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px;
}
.fh-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.fh-input {
  width: 100%;
  box-sizing: border-box;
  font-size: 14px;
  line-height: 1.4;
  padding: 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  resize: vertical;
}
.fh-actions {
  margin-top: 8px;
}
.fh-actions .fh-parse,
.fh-actions .fh-copy {
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #3b82f6;
  color: #fff;
  background: #3b82f6;
  border-radius: 6px;
  cursor: pointer;
  margin-right: 8px;
}
.fh-actions .fh-parse:last-child,
.fh-actions .fh-copy:last-child {
  margin-right: 0;
}
.fh-actions .fh-parse:hover,
.fh-actions .fh-copy:hover {
  background: #2563eb;
  border-color: #2563eb;
}
.fh-msg {
  margin-top: 6px;
  font-size: 13px;
  color: #374151;
}
.fh-msg[data-ok="0"] {
  color: #b91c1c;
}

/* 小屏适配：在窄屏上减小缩放，避免溢出 */
@media (max-width: 480px) {
  .new_login_box.fangda-enhanced {
    transform: translate(-50%, -50%) scale(1.6);
    max-height: 88vh;
  }
}

/* 占位文字字号更小（用户名/密码等）*/
.new_login_box.fangda-enhanced .nlb_input input::placeholder {
  font-size: 12px !important;
}
/* 兼容 WebKit/Chromium 内核 */
.new_login_box.fangda-enhanced .nlb_input input::-webkit-input-placeholder {
  font-size: 12px !important;
}

/* 修复 passwordsxc 输入框文字垂直被裁剪的问题 */
.new_login_box.fangda-enhanced .nlb_input input[type="passwordsxc"],
.new_login_box .nlb_input input[type="passwordsxc"],
.new_login_box .el-input__inner[type="passwordsxc"] {
  box-sizing: border-box;
  height: 40px !important;
  line-height: 40px !important;
  padding: 0 12px;
  font-size: inherit;
}